{include file="layout/layout" /}
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>商户管理 - 商户信息</h3>
                <h5>商城系统商户信息</h5>
            </div>
        </div>
    </div>
    <div class="ncap-form-default">
        <dl class="row">
            <dt class="tit">
                <label>商户ID</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_id}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户名称</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_name}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>手机号</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_mobile}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>登录账号</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_username}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>店主姓名</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_true_name}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户编号</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_number}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label class="code_url">门店LOGO</label>
            </dt>
            <dd class="opt">
            {if $shop.sp_logo_url}
                <a href="__ROOT__{$shop.sp_logo_url}"><img src="__ROOT__{$shop.sp_logo_url}" width='150' height='auto' title='点击查看图片'></a>
            {else/}
                <strong>该商户暂未上传门店LOGO</strong>
            {/if}
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>公司名称</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_company}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>公司法人</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_legal_person}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>营业执照编号</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_bus_license}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label class="code_url">营业执照</label>
            </dt>
            <dd class="opt">
            {if $shop.sp_bus_license_url}
                <a href="__ROOT__{$shop.sp_bus_license_url}"><img src="__ROOT__{$shop.sp_bus_license_url}" width='150' height='auto' title='点击查看图片'></a>
            {else/}
                <strong>该商户暂未上传营业执照</strong>
            {/if}
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户电话</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_phone}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>所属区域</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.merger_name}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户地址</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_address}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户分类</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.ty_name}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>代理商名称</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.agem_principals}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>状态</label>
            </dt>
            <dd class="opt"><strong style='color:black'>
            {switch $shop.sp_status}
                {case 2}禁用{/case}
                {case 3}已删除{/case}
                {default /}正常
            {/switch}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>APPID</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_appid}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>OpenID</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_openid}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>营业时间</label>
            </dt>
            <dd class="opt">
            {if $shop.sp_start_time}
                <strong style='color:black'>{$shop.sp_start_time} ~ {$shop.sp_end_time}</strong>
            {else/}
                <strong>该商户暂未设置营业时间</strong>
            {/if}
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>审核</label>
            </dt>
            <dd class="opt"><strong style='color:black'>
            {switch $shop.sp_audit}
                {case 1}通过{/case}
                {case -1}未通过{/case}
                {default /}待审核
            {/switch}</strong></dd>
        </dl>
        {if $shop.sp_audit}
        <dl class="row">
            <dt class="tit">
                <label>审核时间</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_audit_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
        {/if}
        <dl class="row">
            <dt class="tit">
                <label>最近登录时间</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_login_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>注册时间</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_create_time|date='Y-m-d H:i:s'}</strong></dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>最近登录IP</label>
            </dt>
            <dd class="opt"><strong style='color:black'>{$shop.sp_login_ip}</strong></dd>
        </dl>
    </div> 
</div>
<script type="text/javascript">
     $('#mobile').blur(function(){
            var v = $(this).val();
             if(!(/^1[34578]\d{9}$/.test(v))){
                $(this).next().next().html("<font color='red'>不合法</font>");
                $('#button').attr("disabled",true);
            }else{
                $(this).next().next().html("<font color='green'>正确</font>");
                $('#button').attr("disabled",false);
            }
        })
</script>

</body></html>